import request from '@/utils/request'

// 换表记录-分页列表查询
export function changemeterList(query) {
    return request({
        url: `/system/changemeter/list`,
        method: 'get',
        params: query
    })
}

// 换表记录-获取详细信息
export function changemeterInfo(id) {
    return request({
        url: `/system/changemeter/getcustomer/${id}`,
        method: 'get',
    })
}
// 换表记录-获取详细信息
export function changemeterInfos(id) {
    return request({
        url: `/system/changemeter/${id}`,
        method: 'get',
    })
}

// 换表记录-添加
export function addChangemeter(data) {
    return request({
        url: '/system/changemeter',
        method: 'post',
        data: data
    })
}

// 换表记录-修改
export function updateChangemeter(data) {
    return request({
        url: '/system/changemeter',
        method: 'put',
        data: data
    })
}

// 删除换表记录
export function delChangemeter(configId) {
    return request({
        url: '/system/changemeter/' + configId,
        method: 'delete'
    })
}

// 换表记录-导出
export function exportChangemeter(data) {
    return request({
        url: '/system/changemeter/export',
        method: 'post',
        data: data
    })
}

// 购气金额转气量
export function volumnToGasPrice(query) {
    return request({
        url: `/system/pay/volumnToGasPrice`,
        method: 'get',
        params: query
    })
}


